package com.ytjj.qmyx.data.model.mongo;

import com.ytjj.common.dto.mqdto.SkipStatisticsDto;
import com.ytjj.qmyx.data.util.CalendarUtil;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * mongodb skip统计实体
 *
 *
 *  *
 **/
@Document(collection="skip_day_statistics")
@Data
public class SkipDayStatistics {

    @Id
    private String _id;

    /**
     * 渠道channel
     */
    private String channel;

    /**
     * 日期 2014-11-10
     */
    private String dayTime;

    private Integer pv;

    private Integer uv;

    public SkipDayStatistics() {
    }

    public SkipDayStatistics(String channel, String dayTime) {
        this.channel = channel;
        this.dayTime = dayTime;
        this.pv = 1;
        this.uv = 1;
    }
}
